package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.PagedList
import com.sgcc.nfc.lock.domain.model.Room
import com.sgcc.nfc.lock.domain.repository.RoomRepository
import javax.inject.Inject

class GetRoomsUseCase @Inject constructor(
    private val repository: RoomRepository
) {
    suspend operator fun invoke(
        page: Int,
        pageSize: Int,
        regionId: Long? = null,
        keyword: String? = null
    ): NetworkResult<PagedList<Room>> = repository.getRooms(page, pageSize, regionId, keyword)
}
